package hu.debrecen.adastra.card.repository.domain;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;

import org.springframework.data.jpa.domain.AbstractPersistable;

@Entity
public class PlayerStatistics extends AbstractPersistable<Long> {

	private static final long serialVersionUID = 1L;

	@OneToOne
	@JoinColumn(name = "account_fk", updatable = false)
	private Account account;

	private int joinGameCount;

	private int createGameCount;

	private int finishedGameCount;

	private int callCount;

	public PlayerStatistics() {
		super();
	}

	public Account getAccount() {
		return this.account;
	}

	public void setAccount(final Account account) {
		this.account = account;
	}

	public int getJoinGameCount() {
		return this.joinGameCount;
	}

	public void setJoinGameCount(final int joinGameCount) {
		this.joinGameCount = joinGameCount;
	}

	public int getCreateGameCount() {
		return this.createGameCount;
	}

	public void setCreateGameCount(final int createGameCount) {
		this.createGameCount = createGameCount;
	}

	public int getFinishedGameCount() {
		return this.finishedGameCount;
	}

	public void setFinishedGameCount(final int finishedGameCount) {
		this.finishedGameCount = finishedGameCount;
	}

	public int getCallCount() {
		return this.callCount;
	}

	public void setCallCount(final int callCount) {
		this.callCount = callCount;
	}

}
